<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of building
 *
 * @author Lojza
 */
class Building {

    var $id;
    var $imagePath;
    var $name;
    var $phoneNumber;
    var $address;
    var $postcode;
    var $reviews;
    var $buildingType;

    function __construct($row) {
        $this->id = $row['id'];
        $this->imagePath = $row['image_path'];
        $this->name = $row['name'];
        $this->phoneNumber = $row['phone_number'];
        $this->address = $row['address'];
        $this->postcode = $row['postcode'];
        $this->reviews = $row['reviews'];
        $this->buildingType = $row['building_type'];
    }

    public function getId() {
        return $this->id;
    }

    public function getImagePath() {
        return $this->imagePath;
    }

    public function getName() {
        return $this->name;
    }

    public function getPhoneNumber() {
        return $this->phoneNumber;
    }

    public function getAddress() {
        return $this->address;
    }

    public function getPostcode() {
        return $this->postcode;
    }

    public function getReviews() {
        return $this->reviews;
    }

    public function getBuildingType() {
        return $this->buildingType;
    }

}

?>
